package com.tcd.Policy.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 保单信息表
 * </p>
 *
 * @author cz
 * @since 2021-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="WarrantyInfo对象", description="保单信息表")
@AllArgsConstructor
@NoArgsConstructor
public class WarrantyInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "保单编号")
      @TableId(value = "warranty_Id", type = IdType.AUTO)
    private Long warrantyId;

    @ApiModelProperty(value = "保单序号")
    @TableField("policy_No")
    private String policyNo;

    @ApiModelProperty(value = "被保人")
    @TableField("recognizee_Id")
    private Integer recognizeeId;

    @ApiModelProperty(value = "签单日期")
    @TableField("permission_Time")
    private Date permissionTime;

    @ApiModelProperty(value = "保险起期")
    @TableField("insurance_BeginTime")
    private Date insuranceBegintime;

    @ApiModelProperty(value = "保险止期")
    @TableField("insurance_EndTime")
    private Date insuranceEndtime;

    @ApiModelProperty(value = "缴费时间")
    @TableField("payment_Time")
    private Date paymentTime;

    @ApiModelProperty(value = "保险类型(1.交强险 2.商业险)")
    @TableField("insurance_Type")
    private Integer insuranceType;

    @ApiModelProperty(value = "保单类型(1.新保2.续保)")
    @TableField("warranty_Type")
    private Integer warrantyType;

    @ApiModelProperty(value = "保单状态（1.正常 2.注销 3.退保）")
    @TableField("warranty_State")
    private Integer warrantyState;

    @ApiModelProperty(value = "投保金额")
    @TableField("insure_Money")
    private BigDecimal insureMoney;

    @ApiModelProperty(value = "车牌号码")
    @TableField("license_Id")
    private String licenseId;

    @ApiModelProperty(value = "车身颜色")
    @TableField("car_Color")
    private String carColor;

    @ApiModelProperty(value = "使用性质（1.家庭自用汽车 2非营业客车 3营业客车）")
    private String nature;

    @ApiModelProperty(value = "车主姓名")
    @TableField("carOwner_Name")
    private String carownerName;

    @ApiModelProperty(value = "新车购置价")
    @TableField("vpDollar")
    private BigDecimal vpdollar;

    @ApiModelProperty(value = "出险次数")
    @TableField("accidentsNum")
    private Integer accidentsNum;

    @ApiModelProperty(value = "实际使用年限")
    @TableField("placeman_Length")
        private Integer placemanLength;

    @ApiModelProperty(value = "保单创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "保单修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "被保人")
    @TableField(exist = false)
    private RecognizeeInfo recognizeeInfo;

    @ApiModelProperty(value = "险别集合")
    private List<String> riskTypeList;

    @ApiModelProperty(value = "审核状态")
    @TableField("audit_status")
    private Long auditStatus;
}
